<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html  style="background:linear-gradient(to bottom,#fff, #ddd,#fff)">
<head>
    <title>Title</title>

    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        p{
            font-family: "楷体";
            font-size: 16px;
            line-height: 40px;
            font-weight: bold;
            text-align: center;
        }
        .fen{
            color: red;
        }
    </style>
</head>
<body style="padding: 20px">

<h2>分数列表</h2>
<hr/>
    <c:forEach items="${list}" var="u" varStatus="stat">
        <p>${stat.index+1}.&nbsp;&nbsp;${u.username}&nbsp;&nbsp;&nbsp;&nbsp;<span class="fen">${u.score}</span></p>
    </c:forEach>

</body>

</html>
